<%@ page contentType="text/vnd.wap.wml;charset=utf-8"%><%@page import="com.yymmarket.forum.game.tiny.TinyGame,com.yymmarket.forum.game.tiny.TinyGame1"%><%@page import="com.yymmarket.forum.game.tiny.TinyGame2"%><%@page import="com.yymmarket.forum.game.tiny.TinyGame3,com.yymmarket.forum.game.tiny.TinyGame4,com.yymmarket.forum.game.tiny.TinyGame5,com.yymmarket.forum.game.tiny.TinyAction,com.yymmarket.forum.util.BaseUtil"%><%!
static TinyGame[] games = {
new TinyGame1(3,3),
new TinyGame1(3,3,3),
new TinyGame2(3,3),
new TinyGame2(4,4),
new TinyGame3(3,8),
new TinyGame3(4),
new TinyGame4(6,4,4),
new TinyGame4(8,6,2),
new TinyGame5(2,4,8),
new TinyGame5(3,6,24),
};
%><%
response.setHeader("Cache-Control","no-cache");
TinyAction action = new TinyAction(request, response);
action.index();
int id = action.getAttributeInt("id");
if(action.isResult("redirect")){
return;
}
if(id > 0 && id < 999) {
	action.chooseGame(games[id-1].copy());
	return;
}
%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="桃花园">
<p align="left">
<%=BaseUtil.top(request, response)%>
<%if(action.isResult("tip")){%>
<%=action.getTip()%><br/>
1.<a href="index.jsp?g=999">返回</a><br/>
<%}else{%>
==小游戏训练场==<br/>
<%for(int i=0;i<games.length;i++){
TinyGame g = games[i];%>
<%=i+1%><a href="index.jsp?g=<%=(i+1)%>"><%=g.getName()%></a><br/>
<%}%>
<%}%>
<%=BaseUtil.bottom(request, response)%>
</p>
</card>
</wml>